% GAUTIER LE BIHAN - 2020
% Replication files for "Shocks vs Menu Costs: Patterns of Price Rigidity in an Estimated Multi-Sector Menu-Cost Model?" Review of Economics and Statistics
%
% Table D

clear;
tic
addpath('..\..\Utilities')  
load actual_moments_k

load ..\..\Estimation_param\MS_produits_KR_CalvoPlus\stat_tempb
param0=stat_tempb;

param=[param0];

s=227

stat=zeros(s,16);
for jj=1:s;
    p0=tanh(param(jj,2));
    mu_c=param(jj,3);
    sig_eps_a=exp(param(jj,4));
       p_a =tanh(param(jj,5));
    rho_a=0.6946; 
    
    weight_j=actual_moments_k(jj,12);

    sm_m=0;
    param_e=[p0 mu_c sig_eps_a p_a ]
   [moments, VC]=geNCalvoPlus_VC(p0, mu_c, sig_eps_a,p_a, weight_j);
  stat4_alt(jj,:)=[ param_e moments VC];
jj
  save stat4_alt stat4_alt;
end
